package pgui;

import javax.swing.table.DefaultTableCellRenderer;

import pgui.visual.PImage;

public class PTableRenderer extends DefaultTableCellRenderer {
	private static final long serialVersionUID = 1L;

	protected void setValue(Object value) {
		if (value instanceof PImage) {
			PImage component = (PImage) value;
			setIcon(component.getImageIcon());
			setText("");
			return;
		} 
		
		super.setValue(value);
	}
}